package com.loong.system.service.impl;

import com.loong.common.dubbo.service.AbstractService;
import com.loong.common.rest.rpc.RPCResponse;
import com.loong.system.handler.SystemConfigureHandler;
import com.loong.system.service.ISystemConfigureService;
import org.apache.dubbo.config.annotation.DubboService;
import javax.annotation.Resource;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-11-18 14:16
 */
@DubboService(timeout = 5000,interfaceClass = ISystemConfigureService.class)
public class SystemConfigureServiceImpl  extends AbstractService implements ISystemConfigureService {
    @Resource
    private SystemConfigureHandler systemConfigureHandler;
    @Override
    /**
     * 全量更新redis中动态配置信息
     */
    public RPCResponse initAll() {
        return serviceExecutor.execute(()->systemConfigureHandler.initAll());
    }
}
